
#ifndef TEXTTEXTURE_H
#define TEXTTEXTURE_H

#include <string>
#include "Vector3.h"
#include "Texture.h"

class TextTexture: public Texture
{
	
private:
	std::string		m_sText;
    std::string     m_sFontName;
    float           m_fFontSize;
    int             m_iHAlign;
    int             m_iVAlign;
    Vector2         m_vTextSize;
    bool            m_bBreakLines;
    int             m_iLineWidth;
	
public:
	TextTexture();
	TextTexture(const std::string &_sText, const std::string &_sFontName, float _fFontSize, int _iHAlign = 0, int _iVAlign = 0, bool _bBreakLines = false, int _iLineWidth = 640);
	~TextTexture();
	
	void setText( const std::string &_sText );

	void createTextTexture();
    
    Vector2 getTextSize() { return m_vTextSize; } 
};

#endif